package main

import (
	bank_controller "transaction-demo/controller/bank"
	"transaction-demo/db"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	db.Init()
	r.POST("/api/bank/trade", bank_controller.BankTrade)
	r.POST("/api/bank/list", bank_controller.GetBankRecord)
	r.POST("/api/bank/update", bank_controller.UpdateBand)
	r.Run(":9000")
}
